import request from '@/utils/request'
import Cookies from 'js-cookie'
// 列表
export function getList(data) {
    return request({
        url: '/Statistic_month_stock/get_month_stock',
        method: 'post',
        data: data
    })
}
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 导出
export function getExport(data) {
    console.log(`store_id=${data.store_id}&begin_time=${data.begin_time}&end_time=${data.end_time}`)
    window.location.href = `https://${location.host}/smsi/index.php/Statistic_month_stock/get_excel?store_id=${data.store_id}&begin_time=${data.begin_time}&end_time=${data.end_time}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
